import request from '@/utils/request'

// 查询到访记录列表
export function listTbVisitingRecords(query) {
  return request({
    url: '/tbvr',
    method: 'get',
    params: query
  })
}

// 查询到访记录详细
export function getTbVisitingRecords(vrId) {
  return request({
    url: '/personnel/TbVisitingRecords/' + vrId,
    method: 'get'
  })
}

// 新增到访记录
export function addTbVisitingRecords(data) {
  return request({
    url: '/personnel/TbVisitingRecords',
    method: 'post',
    data: data
  })
}

// 修改到访记录
export function updateTbVisitingRecords(data) {
  return request({
    url: '/personnel/TbVisitingRecords',
    method: 'put',
    data: data
  })
}

// 删除到访记录
export function delTbVisitingRecords(vrId) {
  return request({
    url: '/personnel/TbVisitingRecords/' + vrId,
    method: 'delete'
  })
}
